<template>
  <div class="head">
    <div class="head-left" @click="$router.push('/cate')">
      <van-icon class-prefix="icon" size="18" name="fenlei" />
      <span>分类</span>
    </div>
    <div class="head-right" @click="$router.push('/search')">
      <van-icon class-prefix="icon" name="sousuo"></van-icon>
      <span>搜索商品/商铺</span>
    </div>
  </div>
</template>

<script>
export default {}
</script>

<style lang="scss" scoped>
.head {
  height: 50px;
  background-color: #f88;
  display: flex;
  padding-right: 10px;
  box-sizing: border-box;
  align-items: center;
  font-size: 12px;
  color: #fff;
  position: fixed;
  width: 100%;
  left:0;
  top:0;
  z-index: 10;
  &-left {
    display: flex;
    flex-direction: column;
    padding: 0 4px;
    align-items: center;
    justify-content: center;
  }
  &-right {
    background-color: rgba(255, 255, 255, 0.3);
    flex: 1;
    height: 30px;
    border-radius: 15px;
    display: flex;
    align-items: center;
    .icon {
      margin: 0 10px;
    }
  }
}
</style>
